import request from '@/utils/request'

/**
 * 获取项目列表
 * @returns {AxiosPromise}
 */
export function getProjects() {
	return request({
		url: '/project',
		method: 'get',
	})
}

export function getEventProperties(id) {
	return request({
		url: '/project/' + id + '/event/property',
		method: 'get',
	})
}

export function getUserProperties(id) {
	return request({
		url: '/project/' + id + '/user/property',
		method: 'get',
	})
}

export function getEventList(id) {
	return request({
		url: '/project/' + id + '/event',
		method: 'get',
	})
}
